{include 'admin/layout/header'}
<link rel="stylesheet" href="__ADMIN_STATIC__/css/index.css?random={extendSetting('random')}">
<link rel="stylesheet" href="__ADMIN_STATIC__/css/content.css?random={extendSetting('random')}">
<div class="content3">
    <div class="ltcms_box ltcms-server">
        <div class="ltcms-log-title"><img src="__ADMIN_STATIC__/img/server.png" alt="">服务器信息</div>
        <div class="ltcms-server-content">
            <ul>
                <li>
                    <span>操作系统 : </span>
                    <span>{$sysInfo["osName"]}</span>
                </li>
                <li>
                    <span>Web服务器 : </span>
                    <span>{$sysInfo["software"]}</span>
                </li>
                <li>
                    <span>网站域名 : </span>
                    <span>{$sysInfo["url"]}</span>
                </li>
                <li>
                    <span>文件上传限制 : </span>
                    <span>{$sysInfo["upload_max_filesize"]}</span>
                </li>
                <li>
                    <span>PHP版本 : </span>
                    <span>PHP{$sysInfo["phpVersion"]}</span>
                </li>
                <li>
                    <span>MySQL版本 : </span>
                    <span>{$sysInfo["mysqlVersion"]}</span>
                </li>
            </ul>
        </div>
    </div>
    <div class="ltcms_box ltcms-log">
        <div class="ltcms-log-title">
            <img src="__ADMIN_STATIC__/img/message.png" alt="">
            系统服务日志
            <!--<p class="more"><a href="log.html">更多 ></a></p>-->
        </div>
        <style>
            .ltcms-log-content::-webkit-scrollbar {
                width: 0;
            }
        </style>
        <div class="ltcms-log-content" style="overflow-y: scroll;">
            <ul>
                {LTcms:logOperationShow  size="20" }
                <li>
                    <div class="log-content-up">
                        <span><strong>{$field['author']}</strong></span>
                        <span class="time">{$field['create_time']?date('Y-m-d H:i:s',$field['create_time']):''}</span>
                    </div>
                    <div class="log-content-down">
                        <span>{$field['ip_address']}</span>
                        <span>{$field['content']}</span>
                    </div>
                </li>
                {/LTcms:logOperationShow}
            </ul>
        </div>
    </div>
    <div class="ltcms_box ltcms-message">
        {LTcms:news size="4" receiveName="cmsSiteData" /}
        <div class="ltcms-log-title">
            <img src="__ADMIN_STATIC__/img/message.png" alt="">
            官方资讯
            <p class="more"><a target="_blank" href="{if isset($cmsSiteData) && $cmsSiteData}{$cmsSiteData[0]['moduleLinkUrl']}{/if}">更多 ></a></p>
        </div>
        <div class="ltcms-message-content">
            <ul class="ltcms-message-list">
                {if isset($cmsSiteData) && $cmsSiteData}
                {foreach $cmsSiteData $val}
                <li>
                    <a target="_blank" href="{$val['linkUrl']}">{$val["webTitle"]}</a>
                </li>
                {/foreach}
                {/if}
            </ul>
        </div>
    </div>
</div>
<div class="system">
    <div class="ltcms-log-title" style="border: 0;"><img src="__ADMIN_STATIC__/img/setting.png" alt="">系统信息</div>
    <div class="system-content">
        <table class="table" >
            <tr>
                <td>最新版本:</td>
                <td>{if isset($version['lastVersion']['version'])}v{$version['lastVersion']['version']}{else}未知{/if}
                    {if $authData["systemUpgrade_index"]["pass"]}
                        <span  onclick="pop('系统更新','{LTCMS_ROUTE_PREFIX}/systemUpgrade', '600px', '500px');" style="color:green;cursor: pointer;">更新</span>
                    {/if}
                </td>
                <td>当前版本:</td>
                <td><span id="version">{if isset($version['version'])}v{$version['version']}{else}未知{/if}</span></td>
            </tr>
            <tr>
                <td>网站名称:</td>
                <td>{$siteTitle}</td>
                <td>版权所有:</td>
                <td>
                    {if $isAuthorized["code"]=="0"}已授权{else}未授权{/if}<strong>校验</strong>
                    <span style="cursor: pointer;color:blue;" onClick="runApi(this)" title="更新授权"  data-close="3" data-submit-url="{LTCMS_ROUTE_PREFIX}/systemUpgrade/updateKey" data-method="post" >更新授权</span>
                    {if $version["stage"]=="alpha"}
                    <span style="cursor: pointer;color:blue;" onClick="runApi(this)" title="更新白名单"  data-close="3" data-submit-url="{LTCMS_ROUTE_PREFIX}/systemUpgrade/updateWhiteList" data-method="post" >更新白名单</span>
                    {/if}
                </td>
            </tr>
        </table>
    </div>
</div>
{include 'admin/default/agree'}
<div class="ltcms-verify">
    <img src="__ADMIN_STATIC__/img/{$isAuthorized['code']=='0'?'success':'lose'}.png" alt="">
    <p>{if $isAuthorized["code"]=="0"}已授权{else}{$isAuthorized["msg"]}{/if}</p>
</div>
<script>
    $(".system-content table tr td strong").click(function () {
        $(".ltcms-verify").css({"display": "flex"});
        setTimeout(() => {
            $(".ltcms-verify").css({"opacity": "1"});
        }, .1);
        setTimeout(() => {
            $(".ltcms-verify").css({"opacity": "0"});
        }, 2000);
    });
</script>
{include 'admin/layout/footer'}